//
//  AppDelegate.h
//  eBook
//
//  Created by zhy on 12-11-29.
//  Copyright (c) 2012年 zhan. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PSStackedView.h"

#define kAppKey             @"3805745599"
#define kAppSecret          @"ce962cf2496f9bdfaa3474adb1d3dc22"
#define kAppRedirectURI     @"http://www.baidu.com"

#define XAppDelegate ((AppDelegate *)[[UIApplication sharedApplication] delegate])

#ifndef kAppKey
#error
#endif

#ifndef kAppSecret
#error
#endif

#ifndef kAppRedirectURI
#error
#endif

@class SinaWeibo;
@class PSStackedViewController;

@interface AppDelegate : UIResponder <UIApplicationDelegate>
{
    SinaWeibo *sinaweibo;
    PSStackedViewController *_stackVC;
    NSMutableArray *_bookmarkData;
}
@property (strong, nonatomic) UIWindow *window;

@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

@property (strong, nonatomic) PSStackedViewController *stackVC;
@property (strong, nonatomic) NSMutableArray *bookmarkData;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;

-(void) setVCForSina:(UIViewController *) vc;

@property (readonly, nonatomic) SinaWeibo *sinaweibo;

@end
